﻿using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace Project5.Database.Migrations.Migrations
{
    /// <inheritdoc />
    public partial class init1 : Migration
    {
        /// <inheritdoc />
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.AddColumn<string>(
                name: "Testing1Id",
                table: "testing",
                type: "char(36)",
                nullable: true);

            migrationBuilder.CreateIndex(
                name: "IX_testing_Testing1Id",
                table: "testing",
                column: "Testing1Id");

            migrationBuilder.AddForeignKey(
                name: "FK_testing_testing1_Testing1Id",
                table: "testing",
                column: "Testing1Id",
                principalTable: "testing1",
                principalColumn: "Id");
        }

        /// <inheritdoc />
        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropForeignKey(
                name: "FK_testing_testing1_Testing1Id",
                table: "testing");

            migrationBuilder.DropIndex(
                name: "IX_testing_Testing1Id",
                table: "testing");

            migrationBuilder.DropColumn(
                name: "Testing1Id",
                table: "testing");
        }
    }
}
